<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/tf/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="${ctx }/libs/fckeditor/fckeditor.js"></script>

<script type="text/javascript">

	function addParam() {

		var oEditor = FCKeditorAPI.GetInstance("content");

		var text = document.getElementById("repParam").value;
		
		oEditor.InsertHtml(text);
	}
</script>
<title>Insert title here</title>
</head>
<body>
<form action="${ctx }/common/contract_createTemplated.action" method="post" name="example">
	<h3>编辑合同</h3>
	<div>
		参数：
		<select id="repParam">
			<option value="$PARTYA">甲方</option>
			<option value="$PARTYB">乙方</option>
			<option value="$MONEY">金额</option>
		</select>
		<input value="添加" onclick="addParam()" type="button"/>
		<br/>
		合同名称：
		<select name="templateName">
			<option value="logistics_supply">物流供应合同</option>
			<option value="logistics_needs">物流需求合同</option>
			<option value="storage_supply">仓储供应合同</option>
			<option value="storage_needs">仓储需求合同</option>
		</select>
		<br/>
		备注：<input name="remark"/>
		
	</div>
	<div>
		<script type="text/javascript">
			var oFCKeditor = new FCKeditor('content');
			oFCKeditor.BasePath = "${ctx }/tf/plug/fckeditor/";
			oFCKeditor.ToolbarSet = "Basic";
			oFCKeditor.Create();
		</script>
		<input name="ok" type="submit" value="提交">
	</div>
	</form>	
</body>
</html>